<template>
  <div style="width: 1000px">
    <el-radio-group v-model="labelPosition" size="small">
      <el-radio-button label="left">左对齐</el-radio-button>
      <el-radio-button label="right">右对齐</el-radio-button>
      <el-radio-button label="top">顶部对齐</el-radio-button>
    </el-radio-group>
    <div style="margin: 20px;"></div>
    <el-form :label-position="labelPosition" label-width="80px" :model="message">
      <el-form-item label="课程问题">
        <el-input v-model="message.courseQustion"></el-input>
      </el-form-item>
      <el-form-item label="课程答疑">
        <el-input v-model="message.courseAnswer"></el-input>
      </el-form-item>
      <el-button @click="addCourseAnswers()">确认添加</el-button>
      <el-button  @click="turnPage(eid,'list')">返回</el-button>
    </el-form>
  </div>
</template>

<script>
  import {SystemManageService} from '../SystemManageService'
    export default {
        name: "AddMessage",
      data() {
        return {
          labelPosition: 'right',
          message: []
        }
      },
      methods: {
        addCourseAnswers() {
          SystemManageService.addCourseAnswers(this.message).then(res => {
          });
        }
      }
    }
</script>

<style scoped>

</style>
